export const UserConfig = {
  configName: undefined,
  type: undefined, //user, unit, role, group, position, relativeRole, formField
  userId: undefined,
  userName: undefined,
  unitId: undefined,
  unitName: undefined,
  roleId: undefined,
  roleName: undefined,
  relativeType: undefined,
  relativeName: undefined,
  formFieldName: undefined,
  formFieldType: undefined,
  groupId: undefined,
  groupName: undefined,
  positionId: undefined,
  positionName: undefined,
  containSubUnit: false,
};

export const relativeType = [
  {
    id: '1',
    relativeName: '发起者',
    children: [
      {
        id: 'currentUser',
        relativeName: '发起者本人',
      }, {
        id: 'currentUserMainDepartMembers',
        relativeName: '主岗部门的成员',
      }, {
        id: 'currentUserMainDepartMainManager',
        relativeName: '主岗部门的主管',
      }, {
        id: 'currentUserMainDepartBranchManager',
        relativeName: '主岗部门的分管领导',
      }, {
        id: 'currentUserMainDepartAdmin',
        relativeName: '主岗部门的管理员',
      }, {
        id: 'currentUserMainGeneralManager',
        relativeName: '主岗部门的总经理',
      }
    ]
  }, {
    id: '2',
    relativeName: '发起者上级部门',
    children: [
      {
        id: 'currentUserSuperiorDepartMembers',
        relativeName: '上级部门的成员',
      }, {
        id: 'currentUserSuperiorDepartMembersWithAll',
        relativeName: '上级部门的成员(包含所有下级)',
      }, {
        id: 'currentUserSuperiorDepartMainManager',
        relativeName: '上级部门的主管',
      }, {
        id: 'currentUserSuperiorDepartBranchManager',
        relativeName: '上级部门的分管领导',
      }, {
        id: 'currentUserSuperiorDepartAdmin',
        relativeName: '上级部门的管理员',
      }, {
        id: 'currentUserSuperiorGeneralManager',
        relativeName: '上级部门的总经理',
      }
    ]
  }, {
    id: '3',
    relativeName: '发起者各分管部门',
    children: [
      {
        id: 'currentUserBranchesDepartMembers',
        relativeName: '发起者各分管部门的成员',
      }, {
        id: 'currentUserBranchesDepartMembersWithAll',
        relativeName: '发起者各分管部门的成员(包含所有下级)',
      }, {
        id: 'currentUserBranchesDepartMainManager',
        relativeName: '发起者各分管部门的主管',
      }, {
        id: 'currentUserBranchesDepartBranchManager',
        relativeName: '发起者各分管部门的分管领导',
      }, {
        id: 'currentUserBranchesDepartAdmin',
        relativeName: '发起者各分管部门的管理员',
      }, {
        id: 'currentUserBranchesGeneralManager',
        relativeName: '发起者各分管部门的总经理',
      }
    ]
  }, {
    id: '4',
    relativeName: '发起者各主管部门',
    children: [
      {
        id: 'currentUserManagesDepartMembers',
        relativeName: '发起者各主管部门的成员',
      }, {
        id: 'currentUserManagesDepartMembersWithAll',
        relativeName: '发起者各主管部门的成员(包含所有下级)',
      }, {
        id: 'currentUserManagesDepartMainManager',
        relativeName: '发起者各主管部门的主管',
      }, {
        id: 'currentUserManagesDepartBranchManager',
        relativeName: '发起者各主管部门的分管领导',
      }, {
        id: 'currentUserManagesDepartAdmin',
        relativeName: '发起者各主管部门的管理员',
      }, {
        id: 'currentUserManagesGeneralManager',
        relativeName: '发起者各主管部门的总经理',
      }
    ]
  }
];